/*
 * @Author: 张家亮 1690608011@qq.com
 * @Date: 2022-08-18 23:15:47
 * @LastEditors: 张家亮 1690608011@qq.com
 * @LastEditTime: 2022-08-28 14:12:04
 * @FilePath: \vue-store-server\app\routers\router\userRouter.js
 * @Description: 用户模块路由
 * 
 * Copyright (c) 2022 by 张家亮 1690608011@qq.com, All Rights Reserved. 
 */
const Router = require('koa-router');
const userController = require('../../controllers/userController')

let userRouter = new Router();

userRouter
  .post('/users/login', userController.Login)
  .post('/users/getUserInfo', userController.GetUserInfo)
  .post('/users/finUserByName', userController.FinUserByName)
  .post('/users/updateUserInfo', userController.UpdateUserInfo)
  .post('/users/updatePassword', userController.UpdatePassword)
  .post('/users/register', userController.Register)

module.exports = userRouter;